generator_name = "city"
asset_img_path = "asset/city"
img_dic = \
    {
###########grass#############
        # 0
'00_00': {'tags': (5, 4, 6, 3), 'weight': 1},
'00_02': {'tags': (6, 3, 4, 5), 'weight': 1},
'02_00': {'tags': (3, 6, 5, 4), 'weight': 1},
'02_02': {'tags': (4, 5, 3, 6), 'weight': 1},
        #1
'00_01': {'tags': (2, 1, 4, 3), 'weight': 3},
'01_00': {'tags': (3, 4, 2, 1), 'weight': 3},
'01_02': {'tags': (4, 3, 1, 2), 'weight': 3},
'02_01': {'tags': (1, 2, 3, 4), 'weight': 3},
        #2
'01_01': {'tags': (1, 1, 1, 1), 'weight': 15},
#         #3
# '00_03': {'tags': (5, 8, 6, 7), 'weight': 8},
# '00_04': {'tags': (6, 7, 8, 5), 'weight': 8},
# '01_03': {'tags': (7, 5, 6, 8), 'weight': 8},
# '01_04': {'tags': (8, 5, 7, 6), 'weight': 8},
#         #4
# '00_05': {'tags': (1, 8, 1, 7), 'weight': 1},
# '00_06': {'tags': (1, 7, 8, 1), 'weight': 1},
# '01_05': {'tags': (7, 1, 1, 8), 'weight': 1},
# '01_06': {'tags': (8, 1, 7, 1), 'weight': 1},

###########tile1#############
        # 0
'00_08': {'tags': (15, 14, 16, 13), 'weight': 3},
'00_10': {'tags': (16, 13, 14, 15), 'weight': 3},
'02_08': {'tags': (13, 16, 15, 14), 'weight': 3},
'02_10': {'tags': (14, 15, 13, 16), 'weight': 3},
        #1
'00_09': {'tags': (12, 11, 14, 13), 'weight': 9},
'01_08': {'tags': (13, 14, 12, 11), 'weight': 9},
'01_10': {'tags': (14, 13, 11, 12), 'weight': 9},
'02_09': {'tags': (11, 12, 13, 14), 'weight': 9},
        #2
'01_09': {'tags': (11, 11, 11, 11), 'weight': 15},
#         #3
# '00_11': {'tags': (15, 18, 16, 17), 'weight': 5},
# '00_12': {'tags': (16, 17, 18, 15), 'weight': 5},
# '01_11': {'tags': (17, 15, 16, 18), 'weight': 5},
# '01_12': {'tags': (18, 15, 17, 16), 'weight': 5},
#         #4
# '00_13': {'tags': (11, 18, 11, 17), 'weight': 3},
# '00_14': {'tags': (11, 17, 18, 11), 'weight': 3},
# '01_13': {'tags': (17, 11, 11, 18), 'weight': 3},
# '01_14': {'tags': (18, 11, 17, 11), 'weight': 3},

###########tile2#############
        # 0
'03_00': {'tags': (25, 24, 26, 23), 'weight': 1},
'03_02': {'tags': (26, 23, 24, 25), 'weight': 1},
'05_00': {'tags': (23, 26, 25, 24), 'weight': 1},
'05_02': {'tags': (24, 25, 23, 26), 'weight': 1},
        #1
'03_01': {'tags': (22, 21, 24, 23), 'weight': 3},
'04_00': {'tags': (23, 24, 22, 21), 'weight': 3},
'04_02': {'tags': (24, 23, 21, 22), 'weight': 3},
'05_01': {'tags': (21, 22, 23, 24), 'weight': 3},
        #2
'04_01': {'tags': (21, 21, 21, 21), 'weight': 15},
#         #3
# '03_03': {'tags': (25, 28, 26, 27), 'weight': 8},
# '03_04': {'tags': (26, 27, 28, 25), 'weight': 8},
# '04_03': {'tags': (27, 25, 26, 28), 'weight': 8},
# '04_04': {'tags': (28, 25, 27, 26), 'weight': 8},
#         #4
# '03_05': {'tags': (21, 28, 21, 27), 'weight': 1},
# '03_06': {'tags': (21, 27, 28, 21), 'weight': 1},
# '04_05': {'tags': (27, 21, 21, 28), 'weight': 1},
# '04_06': {'tags': (28, 21, 27, 21), 'weight': 1},

###########tile3#############
        # 0
'03_08': {'tags': (35, 34, 36, 33), 'weight': 3},
'03_10': {'tags': (36, 33, 34, 35), 'weight': 3},
'05_08': {'tags': (33, 36, 35, 34), 'weight': 3},
'05_10': {'tags': (34, 35, 33, 36), 'weight': 3},
        #1
'03_09': {'tags': (32, 31, 34, 33), 'weight': 9},
'04_08': {'tags': (33, 34, 32, 31), 'weight': 9},
'04_10': {'tags': (34, 33, 31, 32), 'weight': 9},
'05_09': {'tags': (31, 32, 33, 34), 'weight': 9},
        #2
'04_09': {'tags': (31, 31, 31, 31), 'weight': 15},
#         #3
# '03_11': {'tags': (35, 38, 36, 37), 'weight': 5},
# '03_12': {'tags': (36, 37, 38, 35), 'weight': 5},
# '04_11': {'tags': (37, 35, 36, 38), 'weight': 5},
# '04_12': {'tags': (38, 35, 37, 36), 'weight': 5},
#         #4
# '03_13': {'tags': (31, 38, 31, 37), 'weight': 3},
# '03_14': {'tags': (31, 37, 38, 31), 'weight': 3},
# '04_13': {'tags': (37, 31, 31, 38), 'weight': 3},
# '04_14': {'tags': (38, 31, 37, 31), 'weight': 3},

###########water#############
        # 0
'06_08': {'tags': (45, 44, 46, 43), 'weight': 3},
'06_10': {'tags': (46, 43, 44, 45), 'weight': 3},
'08_08': {'tags': (43, 46, 45, 44), 'weight': 3},
'08_10': {'tags': (44, 45, 43, 46), 'weight': 3},
        #1
'06_09': {'tags': (42, 41, 44, 43), 'weight': 9},
'07_08': {'tags': (43, 44, 42, 41), 'weight': 9},
'07_10': {'tags': (44, 43, 41, 42), 'weight': 9},
'08_09': {'tags': (41, 42, 43, 44), 'weight': 9},
        #2
'07_09': {'tags': (41, 41, 41, 41), 'weight': 15},
#         #3
# '06_11': {'tags': (45, 48, 46, 47), 'weight': 5},
# '06_12': {'tags': (46, 47, 48, 45), 'weight': 5},
# '07_11': {'tags': (47, 45, 46, 48), 'weight': 5},
# '07_12': {'tags': (48, 45, 47, 46), 'weight': 5},
#         #4
# '06_13': {'tags': (41, 48, 41, 47), 'weight': 3},
# '06_14': {'tags': (41, 47, 48, 41), 'weight': 3},
# '07_13': {'tags': (47, 41, 41, 48), 'weight': 3},
# '07_14': {'tags': (48, 41, 47, 41), 'weight': 3},
    }

tag_connect_dict = \
    {
        1: {1},
        2: {11},
        3: {4},
        4: {3},
        5: {11},
        6: {11},
        7:{8},
        8:{7},

        11: {11, 2, 5, 6, 22, 25, 26, 32, 35, 36},
        12: {12, 15, 16},
        13: {14},
        14: {13},
        15: {12, 15, 16},
        16: {12, 15, 16},
        17: {18},
        18: {17},

        21: {21},
        22: {11},
        23: {24},
        24: {23},
        25: {11},
        26: {11},
        27: {28},
        28: {27},

        31: {31},
        32: {11},
        33: {34},
        34: {33},
        35: {11},
        36: {11},
        37: {38},
        38: {37},

        41: {41},
        42: {11},
        43: {44},
        44: {43},
        45: {11},
        46: {11},
        47: {48},
        48: {47},
    }

img_size = (16, 16)